package com.thyrsus.project.helper;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public class SessionHelper {
	public static void setAttribute(HttpServletRequest request,String attributeName,Object attribute) {
		HttpSession session = request.getSession();
		session.setAttribute(attributeName, attribute);
	}
	
	public static Object getAttribute(HttpServletRequest request, String attributeName) {
		HttpSession session = request.getSession();
		return session.getAttribute(attributeName);
	}
	
	public static void removeAttribute(HttpServletRequest request,String attributeName) {
		HttpSession session = request.getSession();
		session.removeAttribute(attributeName);
	}
}
